from django.contrib import admin
from order.models import Category, SalesCell, Order, OrderDetails


# Register your models here.
class CategoryAdmin(admin.ModelAdmin):
    list_display = ['name']


class SalesCellAdmin(admin.ModelAdmin):
    list_display = ['name', 'category', 'price', 'ico']


class OrderAdmin(admin.ModelAdmin):
    list_display = ['seat', 'created_time', 'order_number', 'status']


class OrderDetailsAdmin(admin.ModelAdmin):
    list_display = ['order', 'sales_cell', 'nums', 'completed_nums', 'status']


admin.site.register(Category, CategoryAdmin)
admin.site.register(SalesCell, SalesCellAdmin)
admin.site.register(Order, OrderAdmin)
admin.site.register(OrderDetails, OrderDetailsAdmin)
